#ifndef COMMCOMMAND_H
#define COMMCOMMAND_H

#include <QObject>
#include <QDebug>
#include <CommonHelper.h>

class CommCommand : public QObject
{
    Q_OBJECT
private:
    CommCommand();

public:
    static CommCommand& I();

public:
    //启动实验指令(62 00 00 3A)
    QString connectToLc();//连接
    QString startExperiment();//启动
    QString pauseExperiment();//暂停
    QString continueExperiment();//继续
    QString stopExperiment();//停止
    QString getMachineStatus();

    //实验操作(62 00 00 3B)
    QString getSyring(QString,QString,QString,QString,QString);
    QString getValve(QString,QString,QString);
    QString getTurntable(QString,QString);
    QString coverTheLid(QString);

    //维护(62 00 00 3C)
    QString AirPumpPressure(QString,QString,QString);
    QString resetExpPos(QString,QString);
    QString resetInitialPosition(QString);
    QString singleStop(QString);

private:
    CommonHelper *common;
};
#endif // COMMCOMMAND_H
